<template>
  <div>
    <div class="doc-title zan-hairline--bottom">{{title}}</div>
    <div class="zan-panel" style="margin-top:0;">
      <div class="zan-card">
        <div class="zan-card__thumb">
          <image class="zan-card__img "
                 :src="thumb"
                 mode="aspectFill"
          ></image>
        </div>
        <div v-if="price" class="zan-card__detail" :style="{'margin-top':count?'40rpx':'40rpx'}">
          <div class="zan-card__detail-row">
            <div class="zan-card__right-col">{{price}}</div>
            <div class="zan-card__left-col zan-ellipsis--l2" style="font-size:26rpx;">
             {{content}}
            </div>
          </div>

          <div class="zan-card__detail-row zan-c-gray-darker">
            <div v-if="count" class="zan-card__right-col">x {{count}}</div>
            <div v-if="desc" class="zan-card__left-col" style="font-size:24rpx;">
              {{desc}}
            </div>
          </div>

          <div v-if="status" class="zan-card__detail-row zan-c-gray-darker">
            <div class="zan-card__left-col zan-c-red">{{status}}</div>
          </div>
        </div>
      </div>
    </div>

  </div>

</template>

<script>
  export default {
    data () {
      return {
        data: {}
      }
    },
    props: {
      title: {
        type: String,
        default: ''
      },
      thumb: {
        type: String,
        default: 'https://img.yzcdn.cn/upload_files/2016/11/25/FpqPXlrMRjKwJs8VdTu3ZDJCj4j5.jpeg?imagediv2/2/w/200/h/200/q/90/format/jpeg',
      },
      price: {
        type: String,
        default: '',
      },
      content: {
        type: String,
        default: ''
      },
      desc: {
        type: String,
        default: '',
      },
      count: {
        type: Number,
        default: 0,
      },
      status: {
        type: String,
        default: ''
      }
    },
    methods: {}
  }
</script>
<style >
.zan-card__img{
  height: 80px;width: 80px;
}

</style>
<style  scoped>
</style>
